package net.wangds.common.base.space;

public class Loc<T extends Number> {
    private T top;
    private T left;

    public static <N extends Number> Loc<N> of(N top, N left){
        return new Loc<>(top, left);
    }

    public Loc(){
    }

    public Loc(T top, T left){
        this.top = top;
        this.left = left;
    }

    public T getTop() {
        return top;
    }

    public void setTop(T top) {
        this.top = top;
    }

    public T getLeft() {
        return left;
    }

    public void setLeft(T left) {
        this.left = left;
    }
}
